package com.yztstudy.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:"; //验证码的key
    public static final Long LOGIN_CODE_TTL = 1L; //验证码的过期时间
    public static final String LOGIN_USER_KEY = "login:token:"; //登录token的key
    public static final Long LOGIN_USER_TTL = 30L; //登录token的过期时间

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L; //店铺的过期时间
    public static final String CACHE_SHOP_KEY = "cache:shop:"; //店铺的key前缀

    public static final String LOCK_SHOP_KEY = "lock:shop:"; //店铺的锁
    public static final Long LOCK_SHOP_TTL = 10L; //锁住的时间

    public static final String KEY_PREFIX = "lock:"; //分布式锁的前缀

    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FOLLOWS = "follows:"; //每一个人的关注对象集合前缀
    public static final String FEED_KEY = "feed:";
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";
    public static final String SHOP_TYPE_KEY = "shopTypes:"; //店铺类型的key
    public static final String HYPER_LOG_LOG_KEY = "hyperLogLog:user:";
    public static final Long SHOP_TYPE_TTL = 30L; //店铺类型的过期时间
}
